package com.yyds.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class NatInfo {
    //核酸检测编号
    private Integer infoId;
    //核酸检测时间
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date infoTime;
    //核酸检测结果
    private String infoResult;
    //核酸检测点名称
    private String infoName;
    //对应居民id
    private Integer residentId;
    //人员状态
    private String infoState;
    //暂定
    private String natType3;
    //暂定
    private String natType2;
    //暂定
    private Integer natType1;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", infoId=").append(infoId);
        sb.append(", infoTime=").append(infoTime);
        sb.append(", infoResult=").append(infoResult);
        sb.append(", infoName=").append(infoName);
        sb.append(", residentId=").append(residentId);
        sb.append(", natType3=").append(natType3);
        sb.append(", natType2=").append(natType2);
        sb.append(", infoState=").append(infoState);
        sb.append(", natType1=").append(natType1);
        sb.append("]");
        return sb.toString();
    }
}